<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title></title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
 <script type="text/javascript" src="fckeditor/fckeditor.js"></script>
<script type="text/javascript">
window.onload = function()
{
var oFCKeditor = new FCKeditor('MyTextarea') ;
oFCKeditor.BasePath = "/Board/fckeditor/" ;
oFCKeditor.Width="400%";
oFCKeditor.Height="150";
oFCKeditor.ToolbarSet="board1";
oFCKeditor.Config["CustomConfigurationsPath"] = "/Board/myconfig.js"  ;
oFCKeditor.ReplaceTextarea() ;
}
</script>

  </head>
  <body>
  
<s:iterator value="messageshow">
<fieldset>
<div id="title"><s:property value="title" /></div>
<div id="name"><s:property value="accountName" /></div>
<div id="messageContent"><s:property value="content" escape="false"  /></div>
<a href="<s:url action="DeleteMessage" >
    <s:param name="messageId"><s:property value="messageId" /></s:param>
    <s:param name="accountName"><s:property value="accountName" /></s:param>
   </s:url>">删除</a>
<div id="time"><s:property value="submitTime" /></div>
</fieldset>
</s:iterator>




<s:iterator value="replylist"  > 
<table border="1" width="100%">
<tr>
<td width="30%" align="center"><s:property value="replyName" />回复</td>
<td><br/><s:property value="replyContent" escape="false"  /><div id="timecolor"><div id="time"><s:property value="replyTime" /></div></div></td>
</tr>
</table>
</s:iterator>




 <s:form action="UserReply" name="form"> 
 <s:iterator value="messageshow"  > 
  发表评论
<s:hidden name="messageId"><p style="font-size:0px;"><s:property value="messageId" /></p></s:hidden>
</s:iterator>
<s:hidden name="replyName1"  value="%{#session.user.accountName} "></s:hidden>
<s:hidden name="replyName2"  value="%{#session.admin.name} "></s:hidden>
<s:textarea name="reply.replyContent" id="MyTextarea" ></s:textarea>
<s:submit label="submit" value="回复"></s:submit>
</s:form>
  </body>
</html>
